package com.example.sunny.service.network.weather

import com.example.sunny.SunnyApplication
import com.example.sunny.pojo.weather.DailyResponse
import com.example.sunny.pojo.weather.RealTimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * This interface is used to send a request for realtime or daily weather info by retrofit
 */
interface WeatherService {

    @GET("v2.5/${SunnyApplication.TOKEN}/{lng},{lat}/realtime.json")
    fun getRealtimeWeather(@Path("lng")lng:String,@Path("lat")lat:String):Call<RealTimeResponse>

    @GET("v2.5/${SunnyApplication.TOKEN}/{lng},{lat}/daily.json?dailysteps=15")
    fun getDailyWeather(@Path("lng")lng:String,@Path("lat")lat:String):Call<DailyResponse>
}